import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { NgZorroIopModule } from 'ng-zorro-iop';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import {ApmMainComponent} from './apm-main.component';
import {HttpInterceptorService} from '@trident/shared';
import {ApmService} from './apm.service';
import {ApmOptComponent} from './opt/apm-opt.component';
import {ApmEditComponent} from './edit/apm-edit.component';
import {ApmAddComponent} from './add/apm-add.component';
import {ApmListComponent} from './list/apm-list.component';



const routes: Routes = [
  {
    path: '', component: ApmMainComponent
  }
];

@NgModule({
  imports: [
    FormsModule,
    ReactiveFormsModule,
    CommonModule,
    RouterModule,
    RouterModule.forChild(routes),
    NgZorroAntdModule,
    NgZorroIopModule
  ],
    declarations: [
      ApmMainComponent,
      ApmOptComponent,
      ApmListComponent,
      ApmAddComponent,
      ApmEditComponent
    ],
    entryComponents: [],
    providers: [ ApmService, { provide: HTTP_INTERCEPTORS, useClass: HttpInterceptorService, multi: true }  ]
})
export class  ApmModule { }
